home *** CD-ROM | disk | FTP | other *** search
/ PC Users 1998 March / Pc Users extra 6.iso / pshare95 / prog / pvie / pview.exe / data.1 / pvbutton.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-14  |  2.4 KB  |  85 lines

  1. #ifndef __PVBUTTON_H__
  2. #define __PVBUTTON_H__
  3.  
  4. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  5.  
  6. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  7. //  Microsoft Visual C++, your modifications will be overwritten.
  8.  
  9.  
  10. // Dispatch interfaces referenced by this interface
  11. class COleFont;
  12. class CPicture;
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CPVButton wrapper class
  16.  
  17. class CPVButton : public CWnd
  18. {
  19. protected:
  20.     DECLARE_DYNCREATE(CPVButton)
  21. public:
  22.     CLSID const& GetClsid()
  23.     {
  24.         static CLSID const clsid
  25.             = { 0x1bb282c4, 0x2cb9, 0x11d0, { 0xad, 0xa6, 0x0, 0x40, 0x5, 0x20, 0x79, 0x9c } };
  26.         return clsid;
  27.     }
  28.     virtual BOOL Create(LPCTSTR lpszClassName,
  29.         LPCTSTR lpszWindowName, DWORD dwStyle,
  30.         const RECT& rect,
  31.         CWnd* pParentWnd, UINT nID,
  32.         CCreateContext* pContext = NULL)
  33.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
  34.  
  35.     BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
  36.         const RECT& rect, CWnd* pParentWnd, UINT nID,
  37.         CFile* pPersist = NULL, BOOL bStorage = FALSE,
  38.         BSTR bstrLicKey = NULL)
  39.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
  40.         pPersist, bStorage, bstrLicKey); }
  41.  
  42. // Attributes
  43. public:
  44.     CString GetCaption();
  45.     void SetCaption(LPCTSTR);
  46.     COleFont GetFont();
  47.     void SetFont(LPDISPATCH);
  48.     BOOL GetEnabled();
  49.     void SetEnabled(BOOL);
  50.     OLE_HANDLE GetHWnd();
  51.     void SetHWnd(OLE_HANDLE);
  52.     short GetPicture();
  53.     void SetPicture(short);
  54.     short GetSpecialEffect();
  55.     void SetSpecialEffect(short);
  56.     BOOL GetDefaultButton();
  57.     void SetDefaultButton(BOOL);
  58.     BOOL GetRepeatButton();
  59.     void SetRepeatButton(BOOL);
  60.     unsigned long GetColorCodeColor();
  61.     void SetColorCodeColor(unsigned long);
  62.     CPicture GetCustomPicture();
  63.     void SetCustomPicture(LPDISPATCH);
  64.     OLE_COLOR GetBackColor();
  65.     void SetBackColor(OLE_COLOR);
  66.     OLE_COLOR GetForeColor();
  67.     void SetForeColor(OLE_COLOR);
  68.     unsigned long GetLightShadow();
  69.     void SetLightShadow(unsigned long);
  70.     unsigned long GetDarkShadow();
  71.     void SetDarkShadow(unsigned long);
  72.     unsigned long GetLightHighlight();
  73.     void SetLightHighlight(unsigned long);
  74.     unsigned long GetDarkHighlight();
  75.     void SetDarkHighlight(unsigned long);
  76.  
  77. // Operations
  78. public:
  79.     void ResetColorScheme();
  80.     void SetRedraw(BOOL bRedraw);
  81.     void AboutBox();
  82. };
  83.  
  84. #endif // __PVBUTTON_H__
  85.